<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Home\Controller;

/**
 * 前台首页控制器
 * 主要获取首页聚合数据
 */
class IndexController extends HomeController {

	//系统首页
	public function index() {
		hook('homeIndex');
		$default_url = C('DEFUALT_HOME_URL'); //获得配置，如果为空则显示聚合，否则跳转
		if ($default_url != '') {
			redirect(get_nav_url($default_url));
		}
		$this->display();
	}

	// public function test() {
	// 	action_log('reg', 'member', 1);
	// }

}